﻿@import "apptheme.less";

#contenthost {
    height: 100%;
    width: 100%;
}

.mcn-splashcreen {
    position: absolute;
    font-family: 'Open Sans Condensed';
    font-size: 11pt;
    text-transform: uppercase;
    background-color: @baseColor;
    color: white;
    font-weight: normal;

    progress {
        margin-left: 10px;
        -ms-grid-row-align: center;
    }

    #mcn-splashcreen-loader .mcn-splashcreen-loader-text {
        text-align: center;
    }
}

body {
    position: relative;
    background-color: #DDD;
}

.fragment {
    /* Define a grid with rows for a banner and a body */
    -ms-grid-columns: 1fr;
    -ms-grid-rows: 128px 1fr;
    display: -ms-grid;
    height: 100%;
    width: 100%;
}

.fragment header[role=banner] {
    /* Define a grid with columns for the back button and page title. */
    -ms-grid-columns: 37px 83px 1fr;
    -ms-grid-rows: 1fr;
    display: -ms-grid;
}

.fragment header[role=banner] .win-navigation-backbutton {
    -ms-grid-column: 2;
    margin-top: 57px;
    position: relative;
    z-index: 1;
}

.fragment header[role=banner] .titlearea {
    -ms-grid-column: 3;
    margin-top: 37px;
}

.fragment header[role=banner] .titlearea .pagetitle {
    width: calc(100% - 20px);
}

.fragment section[role=main] {
    -ms-grid-row: 2;
    height: 100%;
    overflow: auto;
}

#contenthost {
    height: 100%;
    width: 100%;
}


.fragment.fullpage {
    display: block;
}

.fragment header[role=banner] {

    .codelink {
        -ms-grid-column: 4;
        margin-top: 37px;
        margin-right: 40px;
        font-size: 20pt;
        opacity: 0;
        transition: all 200ms ease-in;

        &.visible {
            opacity: 1;
        }
    }

    .titlearea {

        .pagetitle {

            .small {
                font-size: 0.4em;
                color: #AAA;
                margin-top: 8px;
            }
        }
    }
}




.split {
    display: -ms-grid;
    -ms-grid-rows: auto;
    -ms-grid-columns: 1fr 1fr;

    div:nth-child(2) {
        -ms-grid-column: 2;
    }
}

.desc-screen {
    display: -ms-grid;
    -ms-grid-rows: 5px auto  40px;
    -ms-grid-columns: 40px 300px 40px 1fr 40px;
    font-size: 14pt;

    .bloc-description {
        -ms-grid-row: 2;
        -ms-grid-column: 2;
        width: 100%;
        height: 100%;
        padding: 20px;
        border: 4px solid @baseColor;
        border-top-right-radius: 25px;
        border-bottom-left-radius: 25px;
        background-color: white;
        box-sizing: border-box;

        p {
            margin-top: 0.2em;
            margin-bottom: 0.2em;
            line-height: 1.2em;
        }
    }

    .bloc-content {
        -ms-grid-row: 2;
        -ms-grid-column: 4;
    }
}


#codeviewFlyout.childNavigator .childNavigator-contentPlaceholder {
    max-width: 900px;
}

@media screen and (orientation: landscape) and (min-width: 1300px) {
    #codeviewFlyout.childNavigator .childNavigator-contentPlaceholder {
        max-width: 1100px;
    }
}

@media screen and (orientation: landscape) and (min-width: 1900px) {
    #codeviewFlyout.childNavigator .childNavigator-contentPlaceholder {
        max-width: 1400px;
    }
}



@media screen and (orientation: portrait) {

    .fragment header[role=banner] {

        .codelink {
            .text {
                display: none;
            }

            &.visible {
                opacity: 1;
            }
        }
    }

    .desc-screen {
        -ms-grid-rows: 5px auto 10px auto;
        -ms-grid-columns: 40px 1fr 40px;
        font-size: 12pt;

        .bloc-description {
            padding: 10px 20px;
            -ms-grid-row: 2;
            -ms-grid-column: 2;
        }

        .bloc-content {
            -ms-grid-row: 4;
            -ms-grid-column: 2;
            padding-bottom: 40px;
        }
    }
}
